#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<stdarg.h>

int FindMax(int num, ...)
{
	va_list arg;
	va_start(arg, num);
	int max = va_arg(arg, char);
	for (int i = 1; i < num; i++)
	{
		int cur = va_arg(arg, char);
		if (max < cur)
		{
			max = cur;
		}
	}
	va_end(arg);
	return max;
}
int main()
{
	char a = 'a';
	char b = 'b';
	char c = 'c';
	char d = 'd';
	char e = 'e';
	int max = FindMax(5, a, b, c, d,e);
	printf("%c", max);
	return 0;
}